<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang='zh_CN'>
<head>
<meta charset="utf-8" />
<title><?php echo ($config["name"]); ?>-<?php echo (($csign["name"])?($csign["name"]):'资迅教程'); ?>-<?php echo ($config["keywords"]); ?></title>
<meta name='keywords' content='<?php echo ($config["keywords"]); ?>' />
<meta name='description' content='<?php echo ($config["description"]); ?>' />
<link rel="stylesheet" type="text/css" href="../Public/css/base.css">
<link rel="stylesheet" type="text/css" href="../Public/css/sydney.css">
<script type="text/javascript" src="../Public/js/base.js"></script>
</head>
<body>
<div id="index">
<!-- header start -->
<header id="header-top">
<div class="top clearfix">
         <div class="logo fl"><a href="<?php echo U('/index');?>">Sydney</a></div>
         <!--nav-->
         <nav id="mainNav" class="fl">
              <ul>
                <?php if(is_array($cate)): $k = 0; $__LIST__ = array_slice($cate,0,4,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><li class='li<?php echo ($k); ?>'><a href='<?php echo U("/index/".$vo["key"]);?>' <?php if(($vo["key"]) == $_GET['key']): ?>class='current'<?php endif; ?> ><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
              </ul>
         </nav>
         <!--nav end-->
         <div class="search fr"><form method='get' id='search_fm' action='<?php echo U("/search");?>'><input type="text" class="inputText" name='kw' value="" placeholder='请输入搜索关键字...'><input type="button" onclick='document.getElementById("search_fm").submit();' class="inputBtn" value=""></form></div>
         <span class="leaf1"></span><span class="leaf2"></span>
    </div>
    <div class="banner"><a href="#"><img src="../Public/image/demo_banner.jpg"></a></div>
</header>
<!-- header end -->
<section id="main" class="clearfix">
<!--section-->
    <section id="content" class="w720 fl height933">
        <article id="articleList">
             <header id="artcleListTitle">
                 <?php if(($kw) != ""): ?><h1>搜索结果</h1>
                  <?php else: ?>
                  <h1><?php echo (($csign["name"])?($csign["name"]):'资讯教程'); ?></h1><?php endif; ?>
                 
                 <span class="greenLine"></span>
             </header>
             <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><!--articleList-mol-->
             <section id="articleList-mol">
               <article>
                  <header><h2><a href="<?php echo U('/detail/'.$vo['id']);?>"><?php echo ($vo["title"]); ?></a></h2></header>
                  <p><?php echo (cut_str($vo["content"],0,120)); ?></p>
                  <footer class="clearfix"><p class="articleListDate"><?php echo (date('Y-m-d',$vo["created_at"])); ?></p><p class="comment"><a href="#" class="zan">(<?php echo (($vo["top_count"])?($vo["top_count"]):0); ?>)</a><a href="#" class="pinglun">(<?php echo (($vo["reply_count"])?($vo["reply_count"]):0); ?>)</a></p></footer>
               </article>
             </section>
             <!--articleList-mol end--><?php endforeach; endif; else: echo "" ;endif; ?>
              <!--page-->
             <footer id="page" class="clearfix">
                <?php echo ($page->show()); ?>
             </footer>
             <!--page end-->
      </article>
    </section> 
<!--section end-->
<!--aside-->
    <aside id="aside" class="fr">
    <!--personInfo-->
        <section id="personInfo">
            <dl class="clearfix">
              <dt><a href="#"><img src="../Public/image/demo_photo.png"></a></dt>
              <dd>
                <h2><a href="#">海洋传说</a></h2>
                <p>性别：女 年龄：24</p>
                <p>现居：成都</p>
              </dd>
            </dl>
            <div class="moodPhrase">
                 <a href="#">微风带走的，是不堪回首的昨天，<br>岁月带不走的，却是长久的依恋。</a>
            </div>
            <div class="microblog clearfix"><a href="#" class="sina"></a><a href="#" class="tx"></a></div>
            <div class="kik"><img src="../Public/image/demo_xy.gif"><h2>微信平台 Sydney</h2></div>
        </section>
    <!--person end-->
    <!--subNav-->
        <nav id="subNav">
             <header><h2>博文类别</h2></header>
             <ul>
               <li><a href="<?php echo U('/index');?>">全部博文</a></li>
               <?php if(is_array($cate)): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/index/'.$vo['key']);?>"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
             </ul> 
        </nav>
    <!--subNav end-->
    <!--new-->
        <section id="new">
            <header><h2>最新文章<a href="<?php echo U('/index');?>"></a></h2></header> 
            <ul>
              <?php if(is_array($top10)): $i = 0; $__LIST__ = $top10;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U('/detail/'.$vo['id']);?>" title='<?php echo ($vo["title"]); ?>'><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </section>
    <!--new end-->
    </aside>
<!--aside end-->
</section>
<div class="clr"></div>
<!--footer-->
<footer id="mainFooter">
	<?php $link = M("Link")->select(); ?>
   <nav id="friendLink">
   	<?php if(is_array($link)): $k = 0; $__LIST__ = $link;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k; if(($k) == "1"): ?><a href="<?php echo ($vo["url"]); ?>" class="first" target='_blank'><?php echo ($vo["name"]); ?></a>|
   			<?php else: ?>
   			<a href="<?php echo ($vo["url"]); ?>" target='_blank'><?php echo ($vo["name"]); ?></a>|<?php endif; endforeach; endif; else: echo "" ;endif; ?>
	</nav>
   <address id="copy">Copyright © 2012 Sydney. All Rights Reserved</address>
</footer>
<!--footer end-->
</div>
</body>
</html>